import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 牛客网: 首页 > 试题广场 > 骆驼命名法
 * <a href="https://www.nowcoder.com/questionTerminal/aed1c7bbc2604e7c9661a2348b0541b8">...</a>
 * User: DELL
 * Date: 2023-05-16
 * Time: 13:28
 */
public class Main {
    /**
     * 本题较为简单,主要就是根据原字符串控制输出格式即可
     * @param args
     */
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            String str = scanner.next();
            boolean flag = false;
            for (int i = 0; i < str.length(); i++) {
                if (str.charAt(i) == '_') {
                    flag = true;
                } else {
                    if (flag) {
                        System.out.print(Character.toUpperCase(str.charAt(i)));
                        flag = false;
                    } else {
                        System.out.print(str.charAt(i));
                    }
                }
            }
            System.out.println();
        }
    }
}
